package com.zbf.设计模式1.单例模式;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/8/23  11:31
 * 描述:
 */
public class LanHanShi {

    private static LanHanShi lanHanShi;

    public LanHanShi() {

    }

    public static LanHanShi getInstace(){

        if(lanHanShi==null){
            synchronized ("444"){
                 if(lanHanShi==null){
                     lanHanShi= new LanHanShi();
                     return lanHanShi;
                 }else{
                     return lanHanShi;
                 }
            }
        }else{
            return lanHanShi;
        }

    }

}
